package com.xj.zhihudemo.retrofit;

import com.xj.zhihudemo.mode.LastNewsInfo;
import com.xj.zhihudemo.mode.MenuInfo;
import com.xj.zhihudemo.mode.SplashInfo;
import com.xj.zhihudemo.mode.StoryDetailInfo;
import com.xj.zhihudemo.mode.ThemesInfo;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * Created by Xujing on 16/8/29.
 */
public interface ApiStore {

    //=====
    // 引导页
    //=====
    //    1080*1776
    @GET("start-image/{resolution}")
    Call<SplashInfo> getSplash(@Path("resolution") String resolution);


    //=====
    // 主题分类
    //=====
    //    http://news-at.zhihu.com/api/4/themes

    @GET("themes")
    Call<MenuInfo> getMenu();
    //=====
    // 分类信息
    //=====
    //   http://news-at.zhihu.com/api/4/theme/3

    @GET("theme/{id}")
    Call<ThemesInfo> getTheme(@Path("id") String id);

    //=====
    // 主界面Item
    //=====
    //  http://news-at.zhihu.com/api/4/news/latest
    @GET("news/{date}")
    Call<LastNewsInfo> getLastNews(@Path("date") String date);

    //=====
    // 消息详情
    //=====
    //    http://news-at.zhihu.com/api/4/news/3892357
    @GET("news/{id}")
    Call<StoryDetailInfo> getStrory(@Path("id") String id);
}

